<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>成员介绍 - 流光小队</title>
    <link rel="stylesheet" href="../../css/style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        .members-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .members-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .members-header h1 {
            font-size: 2.5em;
            color: #2d3748;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .members-header p {
            font-size: 1.2em;
            color: #718096;
            max-width: 600px;
            margin: 0 auto;
        }

        .members-tabs {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .tab-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 25px;
            background: #f7fafc;
            color: #718096;
            font-size: 1em;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .tab-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .tab-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
        }

        .members-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }

        .member-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .member-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        }

        .member-avatar {
            width: 100%;
            height: 200px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 4em;
            position: relative;
            overflow: hidden;
        }

        .member-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .member-avatar::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .member-card:hover .member-avatar::before {
            opacity: 1;
        }

        .member-info {
            padding: 25px;
        }

        .member-name {
            font-size: 1.4em;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 8px;
        }

        .member-role {
            color: #667eea;
            font-weight: 500;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .member-role i {
            font-size: 0.9em;
        }

        .member-description {
            color: #718096;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .member-skills {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }

        .skill-tag {
            background: #f7fafc;
            color: #4a5568;
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 0.85em;
            font-weight: 500;
        }

        .member-stats {
            display: flex;
            justify-content: space-between;
            padding-top: 15px;
            border-top: 1px solid #e2e8f0;
        }

        .stat-item {
            text-align: center;
        }

        .stat-value {
            font-size: 1.2em;
            font-weight: 600;
            color: #667eea;
        }

        .stat-label {
            font-size: 0.8em;
            color: #718096;
            margin-top: 2px;
        }

        .member-actions {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .action-btn {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: white;
            color: #4a5568;
            font-size: 0.9em;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            text-decoration: none;
        }

        .action-btn:hover {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .action-btn.primary {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .action-btn.primary:hover {
            background: #5a67d8;
        }

        .members-wall {
            background: #f7fafc;
            border-radius: 16px;
            padding: 40px;
            margin-top: 50px;
        }

        .wall-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .wall-header h2 {
            font-size: 2em;
            color: #2d3748;
            margin-bottom: 10px;
        }

        .wall-header p {
            color: #718096;
            font-size: 1.1em;
        }

        .wall-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 20px;
        }

        .wall-item {
            text-align: center;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .wall-item:hover {
            transform: scale(1.05);
        }

        .wall-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2em;
            margin: 0 auto 10px;
        }

        .wall-name {
            font-size: 0.9em;
            color: #4a5568;
            font-weight: 500;
        }

        @media (max-width: 768px) {
            .members-tabs {
                gap: 8px;
            }

            .tab-btn {
                padding: 10px 20px;
                font-size: 0.9em;
            }

            .members-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .member-card {
                margin-bottom: 20px;
            }

            .wall-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: 15px;
            }

            .wall-avatar {
                width: 60px;
                height: 60px;
                font-size: 1.5em;
            }
        }
    </style>
</head>
<body>
    <!-- 侧边栏 -->
    <div class="sidebar" id="sidebar">
        <div class="sidebar-header">
            <h3>流光小队</h3>
            <button class="sidebar-toggle" onclick="toggleSidebar()">
                <i class="fas fa-times"></i>
            </button>
        </div>
        <nav class="sidebar-nav">
            <ul>
                <li>
                    <a href="../../index.html">
                        <i class="fas fa-home"></i>
                        首页
                    </a>
                </li>
                <li>
                    <a href="../about/index.html">
                        <i class="fas fa-info-circle"></i>
                        关于我们
                    </a>
                </li>
                
                <!-- 成员相关 -->
                <li class="active">
                    <a href="index.html">
                        <i class="fas fa-users"></i>
                        成员介绍
                    </a>
                </li>
                <li>
                    <a href="../excellent/index.html">
                        <i class="fas fa-star"></i>
                        优秀成员
                    </a>
                </li>
                
                <!-- 活动相关 -->
                <li>
                    <a href="../activities/upcoming.html">
                        <i class="fas fa-calendar-alt"></i>
                        活动预告
                    </a>
                </li>
                <li>
                    <a href="../activities/past.html">
                        <i class="fas fa-history"></i>
                        往期活动
                    </a>
                </li>
                <li>
                    <a href="../activities/calendar.html">
                        <i class="fas fa-calendar"></i>
                        活动日历
                    </a>
                </li>
                
                <!-- 成果与资源 -->
                <li>
                    <a href="../achievements/index.html">
                        <i class="fas fa-trophy"></i>
                        小组成果
                    </a>
                </li>
                <li>
                    <a href="../resources/index.html">
                        <i class="fas fa-book"></i>
                        学习资料
                    </a>
                </li>
                <li>
                    <a href="../resources/shares.html">
                        <i class="fas fa-share-alt"></i>
                        成员分享
                    </a>
                </li>
                
                <!-- 互动与讨论 -->
                <li>
                    <a href="../interaction/index.html">
                        <i class="fas fa-comments"></i>
                        互动交流
                    </a>
                </li>
                
                <!-- 加入与联系 -->
                <li>
                    <a href="../join/index.html">
                        <i class="fas fa-user-plus"></i>
                        加入我们
                    </a>
                </li>
                <li>
                    <a href="../contact/index.html">
                        <i class="fas fa-address-book"></i>
                        联系方式
                    </a>
                </li>
                
                <!-- 其他扩展 -->
                <li>
                    <a href="../partners/index.html">
                        <i class="fas fa-handshake"></i>
                        合作伙伴
                    </a>
                </li>
                <li>
                    <a href="../faq/index.html">
                        <i class="fas fa-question-circle"></i>
                        常见问题
                    </a>
                </li>
            </ul>
        </nav>
    </div>

    <!-- 主内容区域 -->
    <div class="main-content">
        <!-- 顶部导航栏 -->
        <div class="topbar">
            <div class="topbar-left">
                <button class="menu-toggle" onclick="toggleSidebar()">
                    <i class="fas fa-bars"></i>
                </button>
                <h1>成员介绍</h1>
            </div>
        </div>

        <!-- 内容区域 -->
        <div class="content">
            <div class="members-section">
                <!-- 页面标题 -->
                <div class="members-header">
                    <h1>团队成员</h1>
                    <p>认识流光小队的优秀成员，了解他们的专业领域和贡献</p>
                </div>

                <!-- 成员分类标签 -->
                <div class="members-tabs">
                    <button class="tab-btn active" onclick="switchTab('all')" data-tab="all">
                        <i class="fas fa-th"></i> 全部成员
                    </button>
                    <button class="tab-btn" onclick="switchTab('core')" data-tab="core">
                        <i class="fas fa-crown"></i> 核心成员
                    </button>
                    <button class="tab-btn" onclick="switchTab('tech')" data-tab="tech">
                        <i class="fas fa-code"></i> 技术团队
                    </button>
                    <button class="tab-btn" onclick="switchTab('design')" data-tab="design">
                        <i class="fas fa-palette"></i> 设计团队
                    </button>
                    <button class="tab-btn" onclick="switchTab('management')" data-tab="management">
                        <i class="fas fa-tasks"></i> 管理团队
                    </button>
                </div>

                <!-- 成员展示网格 -->
                <div class="members-grid" id="membersGrid">
                    <!-- 成员卡片将通过JavaScript动态生成 -->
                </div>

                <!-- 成员墙 -->
                <div class="members-wall">
                    <div class="wall-header">
                        <h2><i class="fas fa-users"></i> 成员墙</h2>
                        <p>流光小队全体成员风采展示</p>
                    </div>
                    <div class="wall-grid" id="membersWall">
                        <!-- 成员墙将通过JavaScript动态生成 -->
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 成员数据
        const members = [
            {
                id: 1,
                name: "张三",
                role: "队长",
                category: "core",
                avatar: "👨‍💻",
                description: "计算机科学与技术专业，擅长算法设计和项目管理。带领团队获得多项国家级奖项。",
                skills: ["算法设计", "项目管理", "Python", "机器学习"],
                stats: { projects: 15, awards: 8, experience: "3年" }
            },
            {
                id: 2,
                name: "李四",
                role: "技术总监",
                category: "tech",
                avatar: "👩‍💻",
                description: "软件工程专业，专注于前端开发和用户体验设计。拥有丰富的项目开发经验。",
                skills: ["前端开发", "UI/UX设计", "React", "Vue.js"],
                stats: { projects: 12, awards: 6, experience: "2.5年" }
            },
            {
                id: 3,
                name: "王五",
                role: "设计总监",
                category: "design",
                avatar: "🎨",
                description: "视觉传达设计专业，负责团队所有项目的视觉设计和品牌形象。",
                skills: ["平面设计", "UI设计", "品牌设计", "插画"],
                stats: { projects: 18, awards: 10, experience: "3年" }
            },
            {
                id: 4,
                name: "赵六",
                role: "项目经理",
                category: "management",
                avatar: "📊",
                description: "工商管理专业，负责项目协调和团队管理，确保项目按时高质量完成。",
                skills: ["项目管理", "团队协作", "沟通协调", "数据分析"],
                stats: { projects: 20, awards: 5, experience: "2年" }
            },
            {
                id: 5,
                name: "钱七",
                role: "后端工程师",
                category: "tech",
                avatar: "⚙️",
                description: "计算机科学与技术专业，专注于后端开发和数据库设计。",
                skills: ["后端开发", "数据库设计", "Java", "Spring Boot"],
                stats: { projects: 14, awards: 7, experience: "2.5年" }
            },
            {
                id: 6,
                name: "孙八",
                role: "UI设计师",
                category: "design",
                avatar: "🎭",
                description: "数字媒体艺术专业，负责用户界面设计和交互体验优化。",
                skills: ["UI设计", "交互设计", "Figma", "Sketch"],
                stats: { projects: 16, awards: 9, experience: "2年" }
            },
            {
                id: 7,
                name: "周九",
                role: "算法工程师",
                category: "tech",
                avatar: "🧠",
                description: "人工智能专业，专注于机器学习和深度学习算法研究。",
                skills: ["机器学习", "深度学习", "Python", "TensorFlow"],
                stats: { projects: 13, awards: 8, experience: "2年" }
            },
            {
                id: 8,
                name: "吴十",
                role: "产品经理",
                category: "management",
                avatar: "📱",
                description: "产品设计专业，负责产品规划和需求分析，确保产品符合用户需求。",
                skills: ["产品规划", "需求分析", "用户研究", "原型设计"],
                stats: { projects: 17, awards: 6, experience: "2.5年" }
            }
        ];

        let currentTab = 'all';

        function toggleSidebar() {
            const sidebar = document.getElementById('sidebar');
            sidebar.classList.toggle('open');
        }

        function switchTab(tab) {
            currentTab = tab;
            
            // 更新标签按钮状态
            document.querySelectorAll('.tab-btn').forEach(btn => {
                btn.classList.remove('active');
            });
            document.querySelector(`[data-tab="${tab}"]`).classList.add('active');
            
            // 重新渲染成员列表
            renderMembers();
        }

        function renderMembers() {
            const grid = document.getElementById('membersGrid');
            const filteredMembers = currentTab === 'all' 
                ? members 
                : members.filter(member => member.category === currentTab);
            
            grid.innerHTML = filteredMembers.map(member => `
                <div class="member-card">
                    <div class="member-avatar">
                        ${member.avatar}
                    </div>
                    <div class="member-info">
                        <div class="member-name">${member.name}</div>
                        <div class="member-role">
                            <i class="fas fa-user-tie"></i>
                            ${member.role}
                        </div>
                        <div class="member-description">${member.description}</div>
                        <div class="member-skills">
                            ${member.skills.map(skill => `<span class="skill-tag">${skill}</span>`).join('')}
                        </div>
                        <div class="member-stats">
                            <div class="stat-item">
                                <div class="stat-value">${member.stats.projects}</div>
                                <div class="stat-label">项目</div>
                            </div>
                            <div class="stat-item">
                                <div class="stat-value">${member.stats.awards}</div>
                                <div class="stat-label">奖项</div>
                            </div>
                            <div class="stat-item">
                                <div class="stat-value">${member.stats.experience}</div>
                                <div class="stat-label">经验</div>
                            </div>
                        </div>
                        <div class="member-actions">
                            <button class="action-btn" onclick="showMemberDetail(${member.id})">
                                <i class="fas fa-eye"></i> 详情
                            </button>
                            <button class="action-btn primary" onclick="contactMember(${member.id})">
                                <i class="fas fa-envelope"></i> 联系
                            </button>
                        </div>
                    </div>
                </div>
            `).join('');
        }

        function renderMembersWall() {
            const wall = document.getElementById('membersWall');
            wall.innerHTML = members.map(member => `
                <div class="wall-item" onclick="showMemberDetail(${member.id})">
                    <div class="wall-avatar">${member.avatar}</div>
                    <div class="wall-name">${member.name}</div>
                </div>
            `).join('');
        }

        function showMemberDetail(id) {
            const member = members.find(m => m.id === id);
            if (member) {
                const detailText = `
👤 成员详情

姓名：${member.name}
职位：${member.role}
专业领域：${member.skills.join('、')}

📝 个人简介：
${member.description}

📊 统计数据：
• 参与项目：${member.stats.projects}个
• 获得奖项：${member.stats.awards}个
• 团队经验：${member.stats.experience}

💼 技能特长：
${member.skills.map(skill => `• ${skill}`).join('\n')}
                `;
                alert(detailText);
            }
        }

        function contactMember(id) {
            const member = members.find(m => m.id === id);
            if (member) {
                alert(`联系${member.name}：\n\n📧 邮箱：${member.name.toLowerCase()}@example.com\n📱 微信：${member.name}2024\n💬 QQ：123456789`);
            }
        }

        // 页面加载完成后初始化
        document.addEventListener('DOMContentLoaded', function() {
            renderMembers();
            renderMembersWall();
            
            // 设置当前页面的导航项为激活状态
            document.querySelectorAll('.sidebar-nav li').forEach(li => {
                li.classList.remove('active');
            });
            document.querySelector('.sidebar-nav li:nth-child(3)').classList.add('active');
        });
    </script>
</body>
</html> 